# TS平台 我的组员

from selenium.webdriver.common.by import By


class DetailOfMyTeam:
    """我的组员--明细数据"""
    content_head = "document.getElementsByClassName('content-head')[0].firstChild.scrollTo(1000,0)"  # 明细数据页面头部菜单区域向右滑动
    nav_my_team_member_loc = (By.XPATH, " //p[text()='我的组员']/following-sibling::ion-icon")
    nav_detail_data_loc = (By.XPATH, "//p[text()='明细数据']")
    # old_with_new_loc = (By.XPATH, "//ion-label[text()='比邻有惠老带新']")
    old_with_new_loc = (By.XPATH, "//div[@class='content-head']/ion-segment/ion-segment-button[last()]")
    old_with_new_table_loc = (By.XPATH, "//datatable-scroller")   # 比邻有惠老带新列表
    start_time_loc = (By.XPATH, "//div[text()='时间范围：']/following-sibling::div[1]/ion-select")
    end_time_loc = (By.XPATH, "//div[text()='时间范围：']/following-sibling::div[3]/ion-select")
    month_loc = (By.XPATH, "//ion-item[contains(.,'1月')]")   # 时间范围月份
    # month_loc = (By.XPATH, "//ion-item[contains(.,'3月')]/ion-radio")
    total_business_loc = (By.XPATH, "//span[contains(.,'合计商机')]/span")  # 合计商机查看按钮
    poster_role_loc = (By.XPATH, "//ion-select[@placeholder='分享海报角色']")   # 分享海报角色
    role_loc = (By.XPATH, "//ion-item[contains(.,'教师端')]")   # 教师端角色
    search_loc = (By.XPATH, "//div[text()=' 搜索 ']")   # 搜索按钮
    detail_dialog_loc = (By.XPATH, "//div[@role='dialog']//datatable-scroller")  # 老带新明细弹窗table

    alert_cancel_loc = (By.XPATH, "//span[text()='取消']/..")  # 云呼是否登录弹窗-取消按钮
